package office.action.business.wrapper;

import java.util.Date;

import office.bo.business.impl.Storage;
import platform.common.bo.IdentifiableObj;

public class StorageWrapper {
	private String id;
	private String productName;// 产品名称
	private String productSpec;// 产品型号
	private long countNum;// 数量
	private double unitPrice;// 单价
	private String unit;// 单位
	private Date intoTime;// 入库日期
	
	//2011-1-15日加入供应商
	private String supplierId;
	private String intoMan; //入库人员
	private String supplierName;//不进行持久化
	private String intoManName; //不进行持久化
	/**
	 * 从bo拷贝属性
	 * @param baseBO
	 */
	public void copyToWrapper(IdentifiableObj baseBO){
		Storage bo = (Storage)baseBO;
		this.id = bo.getId().toString();
		this.productName = bo.getProductName();
		this.productSpec = bo.getProductSpec();
		this.countNum = bo.getCountNum();
		this.unitPrice = bo.getUnitPrice();
		this.unit = bo.getUnit();
		this.intoTime = bo.getIntoTime();
		this.supplierId = bo.getSupplierId();
		this.intoMan = bo.getIntoMan();
		this.supplierName = bo.getSupplierName();
		this.intoManName = bo.getIntoManName();
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public long getCountNum() {
		return countNum;
	}

	public void setCountNum(long countNum) {
		this.countNum = countNum;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Date getIntoTime() {
		return intoTime;
	}

	public void setIntoTime(Date intoTime) {
		this.intoTime = intoTime;
	}

	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getIntoMan() {
		return intoMan;
	}

	public void setIntoMan(String intoMan) {
		this.intoMan = intoMan;
	}

	public String getIntoManName() {
		return intoManName;
	}

	public void setIntoManName(String intoManName) {
		this.intoManName = intoManName;
	}
}
